const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const BaseModel = require('./baseModel')

/**
 * 用户模型
 * @type {mongoose.Schema}
 */
const ServerErrorLogSchema = new Schema({
  ...BaseModel,
  /**
   * 错误信息
   */
  "msg": {type: String, default: ''},
  /**
   * 错误状态码
   */
  "statusCode": {type: String, default: ''}
});

const model = mongoose.model('ServerErrorLog', ServerErrorLogSchema, 'serverErrorLogs');

module.exports = model
